package com.project.collectAPI.comm;
import lombok.Data;

//自定义数据返回类型
@Data
public class JsonResult<T> {
    //返回状态码
    private Integer code;

    //返回信息
    private String msg;

    //返回数据
    private T result;

    public JsonResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public JsonResult(Integer code, String msg, T result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }
}
